# while循环
# i = 1
# n = 0
# while i <= 100:
#     n += i
#     i += 1
# print("%d" %n)

# i = 0
# j = 0
# n = 0
# while i < 10 :
#     while j < 10:
#         print("%d\t" % n, end="")
#         n += 1
#         j += 1
#     j = 0
#     print()
#     i += 1


# for循环
# 迭代
# str = 'hello world'
# for i in str:
#     print(i , end="-")

# 循环,range
# range(start, stop, step)
# 开始，结束，步长
# n = 0
# for i in range(1, 101):        # i -> [1,101)
#     n += i
#     print(n)

# break 和 continue
# i = 1
# print(2)
# for n in range(3, 1001,2):
#     for i in range(2, n+1):
#         if n % i == 0:
#             break
#     if n == i:
#         print(n)

